<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/WEB-INF/page-base.tld" prefix="p"%>

<script>
function immbroadcast_add(){
	var str=ctx+"/platform/message/imm/ImmPage@sendbroadcastShow.page?new_=true";
	$w.openDialog({url:str,title:'发送系统广播',w:550,h:300});
}
function immbroadcast_show(gid){
	var str=ctx+"/platform/message/imm/ImmPage@sendbroadcastShow.page?new_=false&id="+gid;
	$w.openDialog({url:str,title:'查看系统广播',w:550,h:300});
}
</script>
<form action="/platform/message/imm/ImmPage@broadcastList.page" method="post">
<p:hidden bind="pageNum"/>
<p:hidden bind="pageSize_"/>
<div class="easyui-panel ui-queryBar" border="false" data-options="doSize:false">
	<table cellpadding="0" cellspacing="0" style="margin-top:5px">
		<tr>
			<td>&nbsp;内容：</td><td><p:text bind="content" style="width:300px"/></td>
			<td>
				&nbsp<a href="#" class="easyui-linkbutton" iconCls="icon_search" onclick="$w.execForm()">查询</a>
			</td>
		</tr>
		</tr>
	</table>
</div>
<div class="easyui-panel ui-toolBar" border="false" data-options="doSize:false">
	<a href="#" class="easyui-linkbutton" iconCls="icon_add" plain="true" onclick="immbroadcast_add()">发送系统广播</a>
</div>
<table class="ui-table" width="100%" cellpadding="1" cellspacing="1" data-options="showPage:true,
																					pageNum:<p:write bind="pageNum"/>,
																					pageSize:<p:write bind="pageSize_"/>,
																					total:<p:write bind="pagination.totalCount"/>">
	<thead>
		<tr class="ui_th">
			<td width="35" align="center"><input type="checkbox"onclick="$selAllTbBoxs(this)"></td>
			<td align="center">广播内容</td>
			<td width="12%">广播时间</td>
			<td width="12%">发起人</td>
			<td width="40" align="center">查看</td>
		</tr>
	</thead>
	<tbody>
	<p:iterate id="bean" bind="resultList_">
		<tr class="ui_td">
			<td align="center"><input type="checkbox" name="primaryKey_" value="<p:write bind="#bean.id"/>"></td>
			<td><p:write bind="#bean.content"/></td>
			<td><p:write bind="#bean.writeTime"/></td>
			<td><p:write bind="#bean.userName"/></td>
			<td align="center"><a href="#" onclick="immbroadcast_show('<p:write bind="#bean.id"/>')" class="data_look" title="查看"></a></td>
		</tr>
	</p:iterate>
	</tbody>
</table>
</form>